Efficiently updating columns in a Class in Python